package edu.xlh.travel.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
@Data
public class Result {
    private Integer code; //返回码
    private String msg; //返回信息
    private Object data; //返回数据

    public Result(Integer code , String msg){
        this.code = code;
        this.msg = msg;
    }

    public Result(Integer code) {
        this.code = code;
    }

    public Result(Integer code, Object data) {
        this.code = code;
        this.data = data;
    }
}
